<!DOCTYPE html>
<html lang="en">
<head>
    <title>怪兽营</title>
    <meta charset="UTF-8"/>
    <meta name="author" content="zqtao|怪兽营">
    <meta name="email" content="zqtao23@163.com">
    <meta name="keywords" content="囧么肥事,怪兽营,怪兽,机器学习,python,Monster,Ubuntu20.04, Ubuntu20.04安装激活Navicat15"/>
    <meta name="description" content="怪兽营,快乐的咆哮怪兽, Ubuntu20.04安装激活Navicat15"/>
    <meta name="viewport"
          content="width=device-width,height=device-height,initial-scale=1.0,maximum-scale=1.0,user-scalable=0"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Content-Type" content="text/html;"/>
    <meta name="renderer" content="webkit">
    <!--解决页面加载网络图片的403问题 , 可以让img标签预加载网络图片-->
    <meta name="referrer" content="no-referrer" />

    <!--markdown S -->
    <link rel="stylesheet" type="text/css" href="../../static/css/export_setting_css.css"/>
    <link rel="stylesheet" type="text/css" href="../../static/css/markdown_preview_css.css"/>
    <!--markdown E -->

    <!--left bar tools css E-->
    <link rel="stylesheet" type="text/css" href="../../static/css/nav.css">
    <link rel="stylesheet" type="text/css" href="http://www.jq22.com/jquery/font-awesome.4.6.0.css">
    <!--left bar tools css E-->

    <!-- 滚动条 S -->
    <link rel="stylesheet" href="../../static/css/optiscroll.css">
    <!-- 滚动条 E -->
</head>
<body>
<div id="m-wrapper" class="m-wrapper optiscroll">
    <!-- top 锚点 -->
    <a id="top"></a>

    <!-- left bar tools S -->
    <div class="leftNav-item">
        <ul>
            <li>
                <i class="fa fa-location-arrow"></i>
                <a href="http://jiongmefeishi.gitee.io/monster-blog/" target="_blank" class="rota">个人网站</a>
            </li>

            <li title="Git">
                <i class="fa fa-code-fork" aria-hidden="true"></i>
                <a href="http://jiongmefeishi.gitee.io/monster-blog/" target="_blank" class="rota">Git Page</a>
            </li>

            <li lay-data="img" data-fooc="http://resource.zqtaotao.cn/wx/qrcode/jiongmefeishi.jpg">
                <i class="fa fa-comments-o"></i><a href="javascript:;" class="rota">公众号</a>
            </li>

            <li lay-data="img" data-fooc="http://resource.zqtaotao.cn/weixincode.png">
                <i class="fa fa-money"></i><a href="javascript:;" class="rota">小额打赏</a>
            </li>
            <li title="返回顶部" class="for-top">
                <i class="fa fa-arrow-up"></i>
                <a href="#top" class="rota">去顶部</a>
            </li>
        </ul>
    </div>
    <!-- left bar tools E -->



    <!--content S-->
    <div id="export_content"><div class="output_wrapper" id="output_wrapper_id"><h3 id="hubuntu2004navicat15"><span>Ubuntu20.04安装激活Navicat15</span></h3><h1 hidden id="hubuntu2004navicat15"><span>Ubuntu20.04安装激活Navicat15</span></h1>
        <h2 id="h"><span>一、安装基本依赖支持</span></h2>
        <p><strong>安装libcapstone-dev</strong></p>
        <pre><code class="shell language-shell hljs">sudo&nbsp;apt&nbsp;install&nbsp;libcapstone-dev<br></code></pre>
        <p><strong>安装cmake</strong></p>
        <pre><code class="java language-java hljs">sudo&nbsp;apt&nbsp;install&nbsp;cmake<br></code></pre>
        <p><strong>安装rapidjson</strong></p>
        <pre><code class="shell language-shell hljs">sudo&nbsp;apt&nbsp;install&nbsp;rapidjson-dev&nbsp;&nbsp;&nbsp;&nbsp;<br></code></pre>
        <h2 id="h-1"><span>二、安装激活工具</span></h2>
        <p>github文件下载慢：1、使用<a href="http://gitd.cc/">代下服务</a> 2、使用gitee 进行中转</p>
        <p><strong>下载安装keystone</strong></p>
        <pre><code class="hljs nginx"><span class="hljs-attribute">git</span>&nbsp;clone&nbsp;https://github.com/keystone-engine/keystone.git<br></code></pre>
        <p>进入keystone目录，创建buil目录存放keystone编译后的库文件, 随后编译安装，我的文件在~/app/software/</p>
        <pre><code class="hljs bash"><span class="hljs-comment">#进入keystone文件夹</span><br><span class="hljs-built_in">cd</span>&nbsp;~/app/software/keystone<br><br><span class="hljs-comment">#创建build目录，存放编译库文件</span><br>mkdir&nbsp;build<br><br><span class="hljs-comment">#进入build目录</span><br><span class="hljs-built_in">cd</span>&nbsp;build<br><br><span class="hljs-comment">#执行上级目录的make-share.sh脚本</span><br>../make-share.sh<br><br><span class="hljs-comment">#安装keystone</span><br>sudo&nbsp;make&nbsp;install<br><br><span class="hljs-comment">#执行ldconfig动态链接库为系统所共享</span><br>sudo&nbsp;ldconfig<br></code></pre>
        <p><strong>下载安装patcher-keygen</strong></p>
        <pre><code class="hljs nginx"><span class="hljs-attribute">git</span>&nbsp;clone&nbsp;-b&nbsp;linux&nbsp;--single-branch&nbsp;https://github.com/HeQuanX/navicat-keygen-tools.git<br></code></pre>
        <p>进入navicat-keygen-tools目录，执行编译安装</p>
        <pre><code class="hljs apache"><span class="hljs-attribute">cd</span>&nbsp;~/app/software/navicat-keygen-tools<br><br><span class="hljs-comment">#&nbsp;编译安装</span><br><span class="hljs-attribute">make</span>&nbsp;<span class="hljs-literal">all</span><br></code></pre>
        <p>成功编译安装后检查navicat-keygen-tools/bin目录下是否存在navicat-keygen和navicat-patcher</p>
        <p>三、下载navicat的AppImage执行包，存放目录 ~/app/software/</p>
        <pre><code class="hljs nginx"><span class="hljs-attribute">wget</span>&nbsp;https://www.navicat.com.cn/download/direct-download?product=navicat15-premium-cs.AppImage&amp;location=1<br></code></pre>
        <p><strong>提取AppImage内的文件, 执行<code>patch</code>操作</strong></p>
        <pre><code class="hljs coffeescript"><span class="hljs-comment">#&nbsp;该目录下创建一个目录作为挂载点，例如在&nbsp;~/app/software/&nbsp;创建了一个tmp_navicat15目录</span><br>cd&nbsp;~<span class="hljs-regexp">/app/software/</span><br>mkdir&nbsp;tmp_navicat15<br><br><span class="hljs-comment">#&nbsp;将AppImage文件挂载到新创建的目录tmp_navicat15</span><br>sudo&nbsp;mount&nbsp;-o&nbsp;<span class="hljs-keyword">loop</span>&nbsp;navicat15-premium-cs.AppImage&nbsp;tmp_navicat15<br><br><span class="hljs-comment">#AppImage内的文件都已解包到了Navicat15目录内，接下来将Navicat目录内的文件复制到新的一个目录下</span><br>cd&nbsp;~<span class="hljs-regexp">/app/software/</span><br>mkdir&nbsp;Navicat15-patched<br>cp&nbsp;-r&nbsp;tmp_navicat15&nbsp;Navicat15-patched<br><br><span class="hljs-comment">#&nbsp;复制完毕后，取消挂载</span><br>sudo&nbsp;umount&nbsp;tmp_navicat15<br><br><span class="hljs-comment">#&nbsp;删除临时挂载目录</span><br>rm&nbsp;-rf&nbsp;tmp_navicat15<br></code></pre>
        <p><strong>开始patch</strong> 找到navicat-keygen-tools/bin内之前编译出来的的navicat-patcher文件，并选择刚刚解包好的Navicat15-patched目录,执行 <code>patch</code>  操作</p>
        <pre><code class="hljs bash"><span class="hljs-built_in">cd</span>&nbsp;~/app/software/navicat-keygen-tools/bin<br><br><span class="hljs-comment">#&nbsp;执行&nbsp;patch&nbsp;操作</span><br>./navicat-patcher&nbsp;~/app/software/Navicat15-patched<br></code></pre>
        <p>patch 完成后，会生成私钥文件 <code>RegPrivateKey.pem</code></p>
        <h2 id="happimage"><span>四、AppImage打包</span></h2>
        <p>针对patch 操作后的Navicat15-patched 文件进行重新打包为AppImage 可运行包</p>
        <p><strong>下载AppImage打包工具</strong></p>
        <pre><code class="hljs nginx"><span class="hljs-attribute">wget</span>&nbsp;<span class="hljs-string">'https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage'</span><br><br><span class="hljs-comment">#&nbsp;赋予下载好的打包工具执行权限</span><br>sudo&nbsp;chmod&nbsp;-x&nbsp;appimagetool-x86_64.appimage<br></code></pre>
        <p>对Navicat15-patched 文件 ，执行打包，并命名为 <code>navicat15-patched.AppImage</code></p>
        <pre><code class="hljs bash"><span class="hljs-comment">#&nbsp;./打包工具程序&nbsp;要打包的目录&nbsp;打包后生成的文件名.AppImage</span><br><br><br>./appimagetool-x86_64.AppImage&nbsp;Navicat15-patched&nbsp;navicat15-patched.AppImage<br></code></pre>
        <h2 id="hnavicat15"><span>五、Navicat15注册激活</span></h2>
        <p>Navicat15注册激活操作是使用的手动激活，需要在无网络情况下进行激活。<strong>断网</strong></p>
        <p>给navicat15-patched.AppImage 文件执行权限并运行，此时会打开Navicat窗口，不要进行其他操作，继续打开注册机。</p>
        <pre><code class="hljs nginx"><span class="hljs-attribute">sudo</span>&nbsp;chmod&nbsp;+x&nbsp;navicat15-patched.AppImage<br><br>./navicat15-patched.AppImage<br></code></pre>
        <p>运行注册机，找到之前navicat-keygen-tools/bin内的navicat-keygen以及之前生成的私钥文件<code>RegPrivateKey.pem</code></p>
        <pre><code class="hljs bash"><span class="hljs-built_in">cd</span>&nbsp;~/app/software/navicat-keygen-tools/bin/<br><br><span class="hljs-comment">#&nbsp;运行注册机</span><br>./navicat-keygen&nbsp;--text&nbsp;RegPrivateKey.pem<br></code></pre>
        <figure><img src="https://i0.hdslb.com/bfs/article/e35e50a96d3ce3f75d1141a092e9cd8aabf86fd9.png@1320w_488h.webp" alt="注册机" title="注册机"><figcaption>注册机</figcaption></figure>
        <p>分别选择 Premium、Simplified Chinese、15。然后就可以看到生成的激活序列号，复制序列号，继续随便输入用户名和组织即可。</p>
        <p>不要关掉终端窗口，回到之前的Navicat程序界面，点击注册，然后输入刚才复制的序列号，点激活</p>
        <figure><img src="https://i0.hdslb.com/bfs/article/e80a4b26bdf5ea0cef44c425091142aefcdc48a7.png" alt="激活" title="激活"><figcaption>激活</figcaption></figure>
        <p>选择手动激活</p>
        <figure><img src="https://i0.hdslb.com/bfs/article/b8b494725f011058f60417a2601b7497a1b31e64.png@1320w_284h.webp"
                     alt="手动激活" title="手动激活">
            <figcaption>手动激活</figcaption>
        </figure>
        <p>复制请求码</p>
        <figure><img src="https://i0.hdslb.com/bfs/article/f9438119f1d5e81ea361f06c68f841b73ac1b0df.png@1102w_1232h.webp" alt="复制请求码" title="复制请求码"><figcaption>复制请求码</figcaption></figure>
        <p>回到终端，将请求码粘贴上去并回车，可能没反应停住，再按一次回车即可，注意：快速按两次会退出。</p>
        <figure><img src="https://i0.hdslb.com/bfs/article/0687807d90880da7459214bdf4974ec3895f9595.png@1320w_210h.webp" alt="激活码" title="激活码"><figcaption>激活码</figcaption></figure>
        <p>得到最终的激活码，复制粘贴到 Navicat中的窗口里，确认</p>
        <figure><img src="https://i0.hdslb.com/bfs/article/ad21fd6b2f52cb53226b286b2970db7df41e0f86.png@1052w_1246h.webp" alt="确认激活" title="确认激活"><figcaption>确认激活</figcaption></figure>
        <h2 id="happimage-1"><span>六、AppImage程序加入到程序菜单</span></h2>
        <p>此时Navicat15 已经激活完毕，每次运行 ~/app/software/navicat15-patched.AppImage 即可。</p>
        <p>进一步提高体验，安装 <code>AppImageLauncher</code> 进行。</p>
        <p>下载<code>AppImageLauncher</code> </p>
        <pre><code class="hljs cs">&nbsp;https:<span class="hljs-comment">//github.com/TheAssassin/AppImageLauncher/releases</span><br><br><br><span class="hljs-meta">#&nbsp;为了简单选择&nbsp;AppImage&nbsp;类型</span><br>appimagelauncher-lite<span class="hljs-number">-2.2</span><span class="hljs-number">.0</span>-travis1012<span class="hljs-number">-64</span>a086e-x86_64.AppImage<br><br><span class="hljs-meta">#&nbsp;安装AppImageLauncher</span><br>./appimagelauncher-lite<span class="hljs-number">-2.2</span><span class="hljs-number">.0</span>-travis1012<span class="hljs-number">-64</span>a086e-x86_64.AppImage&nbsp;install<br></code></pre>
        <p>安装成功后，打开,点击appimagelauncherd,添加appImage文件的所在目录，会自动添加AppImage 类型的软件到程序菜单中。</p></div></div>
    <!--content E-->
</div>



</body>
<!--left bar tools js S-->
<script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script>
<script type="text/javascript" src="../../static/js/nav.js"></script>
<!--left bar tools js E-->

<!-- 滚动条 S -->
<script type="text/javascript" src="../../static/js/optiscroll.js"></script>
<!-- 滚动条 E -->

<!--commonjs S-->
<script type="text/javascript" src="../../static/js/common.js"></script>
<!--commonjs E-->

</html>
